fix(rag): keep agitation chart expansion without over-broad management matches#853
Conversation
Keep medication-chart token expansion for dose/route/chart/options/listed signals from the rag-tree4 clinical-search change, but drop bare "table" and "management" triggers so topic lookups and pharmacological management questions stay on the agitation arousal topic query. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe clinical search query builder recognizes additional agitation medication-chart cues and applies broader fallback tokens. The branch review ledger gains a 2026-07-18 record for the PR batch screenshot queue review. ChangesClinical search query expansion
Review ledger record
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #3281 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
Satisfy Prettier so Static PR checks pass on the consolidation PR. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Summary
main.tableormanagementas chart intent, so broad pharmacological-management and “which table covers…” queries keep the existing topic contract.tests/clinical-search.test.tsover-expansion).Verification
npm run test -- tests/clinical-search.test.ts(42/42)verify:cheappath: clinical-search green;tests/pdf-extraction-budget.test.ts2 failures reproduce on currentmain(pre-existing; unrelated)npm run eval:retrieval:quality(provider-backed; needs explicit live-key approval)Risk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
BigSimmo/Communicationnot resolvable).Summary by CodeRabbit
Bug Fixes
Documentation